﻿using Coldairarrow.Entity.DTO;
using Coldairarrow.Entity.PB;
using Coldairarrow.Util;
using Coldairarrow.Util.ClassLibrary;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Coldairarrow.Business.PB
{
    public interface IPB_RackBusiness
    {
        Task<PageResult<PB_Rack>> GetDataListAsync(PB_RackPageInput input);
        Task<PageResult<PB_Rack>> GetDataListAsyncid(PB_RackPageInput input,string id);
        Task<PB_Rack> GetTheDataAsync(string id);
        Task<PageResult<PB_Rack>> GetDataListAsync(PageInput<PB_RackConditionDTO> input, string areaId);
        Task<List<PB_Rack>> QueryRackDataAsync();
        Task<List<PB_Rack>> QueryRackDataAsyncareaid( string areaid);
        Task AddDataAsync(PB_Rack data);
        Task UpdateDataAsync(PB_Rack data);
        Task DeleteDataAsync(List<string> ids);
    
        /// <summary>
        /// 打印货架队列
        /// </summary>
        /// <param name="ID"></param>
        /// <param name="_mongodbOptions"></param>
        /// <returns></returns>
        Task<AjaxResult> SelectRackID(PB_RackPrint data, MongoDBOptions _mongodbOptions);
        Task<List<RacklistDto>> Selectid(string id);
    }
    public class PB_RackQM
    {
        //public string Name { get; set; }
        //public string Code { get; set; }
        public string Keyword { get; set; }
    }
    public class PB_RackPageInput : PageInput<PB_RackQM>
    {
        public string AreaId { get; set; }
    }
    public class RacklistDto:PB_Rack {
        public string AreaName { get; set; }
    }
}